package com.tengju.motivation.infrastructure.persistence.mybatis.mapper;

import com.tengju.motivation.infrastructure.persistence.mybatis.dataobject.MotivationActivityConfigDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: 李大仙
 */
public interface MotivationActivityConfigMapper {

    List<MotivationActivityConfigDO> selectByTitlePage(@Param("title") String title,
                                                       @Param("offset") Integer offset,
                                                       @Param("size") Integer size);

    int batchDelete(@Param("ids") List<Long> ids);

    int insertSelective(MotivationActivityConfigDO motivationActivityConfigDO);

    int getTotal(@Param("title") String title);

    MotivationActivityConfigDO selectById(@Param("id") long id);

    int updateSelective(MotivationActivityConfigDO motivationActivityConfigDO);
}
